package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class EvaluateRowMapper implements RowMapper<Evaluate> {

	@Override
	public Evaluate mapper(ResultSet rs) throws SQLException {
		Evaluate e=new Evaluate();
		e.setEvaluateid(rs.getInt("evaluateid"));
		e.setUser_id(rs.getInt("userid"));
		e.setGoodsid(rs.getInt("goodsid"));
		e.setOrderid(rs.getInt("orderid"));
		e.setLevel(rs.getInt("level"));
		e.setContent(rs.getString("content"));
		e.setTime(rs.getTimestamp("time"));
		return e;
	}

}
